#include <iostream>
#include <stdio.h>
#define SIZE 100
using namespace std;

char characters[SIZE];

int main()
{
	int nr = -1, ok = 1, i;
	char c;
	while ((c = getchar()) != '\n')
	{
		++nr;
		characters[nr] = c;
		for (i = 0; i < nr; ++i)
			if (characters[i] == c)
				ok = 0;
	}
	
	cout << ok;
	
	return 0;
}

